package
{
	import com.anjue.loader.DllLoader;
	
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.text.TextField;
	import flash.utils.getDefinitionByName;
	
	[SWF(width="960",height="560")]
	public class TestDllLoader extends Sprite
	{
		private var loadArr:Array = ["dll/TaomeeLibraryDLL.swf","dll/ClientXMLDLL.swf","dll/ClientCoreDLL.swf"]
		
		public function TestDllLoader()
		{
			var loader:DllLoader = new DllLoader();
			loader.addEventListener(Event.COMPLETE,dllComplete);
			loader.doLoad(loadArr);
		}
		
		private function dllComplete(e:Event):void
		{
			var loader:DllLoader = e.target as DllLoader;
			loader.removeEventListener(Event.COMPLETE,dllComplete);
			var testClas:Class = getDefinitionByName("com.flower.core.xml.TaskData_new") as Class;
			var xml:XML = testClas.DATA as XML;
			var txt:TextField = new TextField();
			txt.width = 960;
			txt.height = 560;
			txt.text = xml;
			addChild(txt);
			trace(xml)
		}
	}
}